<?php
/**
 * Created by PhpStorm.
 * Power By Mikkle
 * Email：776329498@qq.com
 * Date: 2017/9/20
 * Time: 15:26
 */

namespace app\center\controller;


use mikkle\tp_tools\Rsa\Rsa;
use think\Exception;

class ChatRoom extends WeAuth
{
   public function index()
   {
      $assign_data = [
      //你自己服务器的地址
         "server"=>"ws://my.tp51.com/:9501",
         "open_id"=>Rsa::instance()->encrypt($this->open_id),
      ];
      $this->assign($assign_data);
      return $this->fetch('chatRoom/index');
   }

}